﻿<UserControl x:Class="Dotway.WPF.Samples.DotwaySampleApplication.DynamicWrapPanelSample"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:panels="clr-namespace:Dotway.WPF.Panels;assembly=Dotway.WPF.Panels">
    <Grid Margin="20">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>

        <StackPanel Grid.Column="0" Width="200">
            <RepeatButton Content="Add item" Click="AddButtonClick"/>
            <RepeatButton Content="Remove item" Click="RemoveButtonClick"/>
        </StackPanel>
        
        <panels:DynamicWrapPanel x:Name="dynamicPanel" Grid.Column="1"/>

    </Grid>
</UserControl>
